master data structures in java